#ifndef unicebot_gui_KINECTWIDGET_HPP_
#define unicebot_gui_KINECTWIDGET_HPP_
#include <QtGui>
#include <QMutex>
#include "ui_main_window.h"

// OPEN CV et KINECT
#include <image_transport/subscriber.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/CvBridge.h>
#include <opencv2/highgui/highgui.hpp>
//

namespace unicebot_gui {

class KinectWidget: public QWidget {
Q_OBJECT

public:
	KinectWidget(QWidget *parent = 0);
	virtual ~KinectWidget();

	QImage imageToDraw;
	QMutex mutex;

protected:
	void paintEvent(QPaintEvent *event);

private:

	void paintImage(QPaintEvent *event);
	void paintLine(QPaintEvent *event);
	void paintKinect(QPaintEvent *event);

};

} //namespace unicebot_gui {

#endif //unicebot_gui_KINECTWIDGET_HPP_
